LunBO('tdemo1','tdemo2','tdemo3','tdemo4','tdemo5','abc','test-more','block','1')
//换页效果（不算轮播图）
function LunBO(d1,d2,d3,d4,d5,bs,me,n,x){
    var demo1 = document.getElementById(d1) ;
    var demo2 = document.getElementById(d2) ;
    var demo3 = document.getElementById(d3) ;
    var demo4 = document.getElementById(d4) ;
    var demo5 = document.getElementById(d5) ;
    var boxs = document.getElementById(bs);
    var more = document.getElementById(me);
    var alist = more.getElementsByTagName("a");

    alist[0].onmouseover = function(){
        demo2.style.display= "none";
        demo1.style.display= n;
        demo3.style.display= "none";
        demo4.style.display= "none";
        demo5.style.display= "none";
        i=1
        
    }
    alist[1].onmouseover = function(){
        demo2.style.display= n;
        demo1.style.display= "none";
        demo3.style.display= "none";
        demo4.style.display= "none";
        demo5.style.display= "none";
        i=2
        
    }
    alist[2].onmouseover = function(){
        i=3
        demo2.style.display= "none";
        demo1.style.display= "none";
        demo4.style.display= "none";
        demo5.style.display= "none";
        demo3.style.display= n;
        
    }
    alist[3].onmouseover = function(){
        i=4
        demo2.style.display= "none";
        demo1.style.display= "none";
        demo3.style.display= "none";
        demo5.style.display= "none";
        demo4.style.display= n;
        
    }
    alist[4].onmouseover = function(){
        i=5
        demo2.style.display= "none";
        demo1.style.display= "none";
        demo4.style.display= "none";
        demo3.style.display= "none";
        demo5.style.display= n;
        
    }
    
    if(x==1){
        boxs.onmouseover =function(){
            clearInterval(timer)
        }
        boxs.onmouseleave = function(){
            timer = setInterval(times,3000)
        }
    
        var i=1
        var timer = setInterval(times,5000)
    
        function  times(){
    
            if(i==0){
                demo1.style.display= n;
                demo2.style.display= "none";
                demo3.style.display= "none";
                demo4.style.display= "none";
                demo5.style.display= "none";
                //console.log(1)
            }
            if(i==1){
                demo1.style.display= "none";
                demo2.style.display= n;
                demo3.style.display= "none";
                demo4.style.display= "none";
                demo5.style.display= "none";
                //console.log(2)
            }
            if(i==2){
                demo1.style.display= "none";
                demo2.style.display= "none";
                demo3.style.display= n;
                demo4.style.display= "none";
                demo5.style.display= "none";
               //console.log(3)
            }
            if(i==3){
                demo1.style.display= "none";
                demo2.style.display= "none";
                demo4.style.display= n;
                demo4.style.display= "none";
                demo3.style.display= "none";
               //console.log(3)
            }
            if(i==4){
                demo1.style.display= "none";
                demo2.style.display= "none";
                demo5.style.display= n;
                demo4.style.display= "none";
                demo3.style.display= "none";
               //console.log(3)
            }
            i++;
            if(i>=5){
                i=0;
            }
        }
    }
    

}

